package commandset;

public class ECast {
	private static String ecast = "ECast";
	public String action = "";
	public String app_id = "";
	public String component_id = "";
	public String resource_uri = "";
	public String variable_name = "";

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getApp_id() {
		return app_id;
	}

	public void setApp_id(String app_id) {
		this.app_id = app_id;
	}

	public String getComponent_id() {
		return component_id;
	}

	public void setComponent_id(String component_id) {
		this.component_id = component_id;
	}

	public String getResource_uri() {
		return resource_uri;
	}

	public void setResource_uri(String resource_uri) {
		this.resource_uri = resource_uri;
	}

	public String getVariable_name() {
		return variable_name;
	}

	public void setVariable_name(String variable_name) {
		this.variable_name = variable_name;
	}

	public String printECast() {
		if (resource_uri == "")
			return ecast + "(" + app_id + ", " + component_id + ", " + action
					+ ");";
		return ecast + "(" + app_id + ", " + component_id + ", " + action
				+ ", " + resource_uri + ");";
	}

}
